import React from 'react'
import {Route, Switch, Redirect} from 'react-router-dom'

import {View as Wallet} from './components/wallet'
import {View as Address} from './components/address'
import {View as Market} from './components/market'
import {View as Dapp} from './components/dapp'
import Test from "./components/test/view"

import TokenDetail from './components/market/tokenDetail'
import RamDetail from './components/market/ramDetail'


const Routes = () => (
    <Switch>
        <Redirect exact path='/' to='/wallet'/>
        <Route exact path='/wallet' component={Wallet}/>
        <Route exact path='/address' component={Address}/>
        <Route exact path='/market' component={Market}/>
        <Route exact path='/dapp' component={Dapp}/>
        <Route exact path='/market/token/detail' component={TokenDetail}/>
        <Route exact path='/market/ram' component={RamDetail}/>
        <Route exact path='/test' component={Test}/>
    </Switch>

)

export default Routes